package ${package.Service};

import ${superServiceClassPackage};
import org.flowers.unbeaten.base.entity.BaseEntity;
import ${package.Entity}.${entity};
import org.flowers.unbeaten.util.PageVo;

import java.util.List;

/**
 * <p>
 * ${table.comment!} 服务类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {

    /**
     * 分页查询列表
     * @param ${lowerEntityName}
     * @param baseEntity
     * @return
     */
    PageVo<${entity}> getPageList(${entity} ${lowerEntityName}, BaseEntity baseEntity);

    /**
     * 新增数据
     * @param ${lowerEntityName}
     */
    void add(${entity} ${lowerEntityName});

    /**
     * 修改数据
     * @param ${lowerEntityName}
     */
    void edit(${entity} ${lowerEntityName});

    /**
     * 查看详情
     * @param ${keyPropertyName}
     * @return
     */
    ${entity} detail(${keyPropertyType} ${keyPropertyName});

    /**
     * 批量删除
     * @param ids
     * @return
     */
    void delete(List<String> ids);

}

